package com.xusheng.cli.mapper;

import com.xusheng.cli.common.base.MyBaseMapper;
import com.xusheng.cli.common.base.MyPage;
import com.xusheng.cli.entity.dictionaryModule.Dictionary;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 字典表 (Dictionary)表数据库访问层
 *
 * @author jy
 * @since 2022-01-17 17:33:17
 */
public interface DictionaryMapper extends MyBaseMapper<Dictionary> {

	List<Dictionary> listDicByParentCode(String code);

	/**
	 * @param page
	 * @return
	 * @author jy
	 * @since 2022/1/17 17:47
	 */
	MyPage<Dictionary> queryByPage(@Param("page") MyPage<Dictionary> page, @Param("dictionary") Dictionary dictionary);

}

